<template>
  <div class="box">
  
    <template v-for="(item, index) in nav">
        <a href="#" :key="index">{{item.name}}</a> 
        <template v-if="index<nav.length-1"> / </template>
        
    </template>
 
    </div>
</template>

<script>
export default {
  props:["nav"]
};
</script>

<style lang="less" scoped>
.box{
  line-height: 30px;
  a{
    text-decoration: none;
    color: #000;
  }
}
</style>